#ifndef ALGORITHM_H
#define ALGORITHM_H
class gobang_algorithm{
public:
    gobang_algorithm();
    int there(int x,int y);
    int four(int x,int y);
    int five(int x,int y,int Num);
    int six(int x,int y);
    bool in(int x,int y);
    int judge(int x,int y,int NUM);
private:
    int Count[8],dir[8][2],Arr[30][30];
    int temp,temp0,temp1,tempdx0,tempdy0, tempdx1,tempdy1,flag,dx0,dy0,dx1,dy1,sum,line;
};

#endif
